/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rh.sgd.factores.views;

import com.mabi.modular.runtime.module.contributions.views.ViewImpl;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.Window.Notification;

/**
 *
 * @author Justo Disla
 */
public class InitialForm extends ViewImpl {
    public InitialForm() {
        addComponent(new Label("Forma inicial de Factores"));
        Button b = new Button("Revisión de nuevos factores");
        b.addListener(new Button.ClickListener() {
            @Override
            public void buttonClick(Button.ClickEvent event) {
                getApplication().getMainWindow().showNotification("Esto es interesante", "Ejecutado desde un módulo!!!", Notification.TYPE_WARNING_MESSAGE);
            }
        });
        addComponent(b);
        setAutoLoad(true);
        setSizeFull();
        setCaption("Lista de Factores");
    }
}
